Skip to content

fix(results): tighten result artifact contract - #1645

Merged
christso merged 1 commit into
mainfrom
results-artifact-contract-tighten
Jul 4, 2026
Merged

fix(results): tighten result artifact contract#1645
christso merged 1 commit into
mainfrom
results-artifact-contract-tighten

Conversation

@christso

@christso christso commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

AgentV result bundles now expose the current tags-first contract without the leftover experiment/config compatibility fields from the first cleanup pass. Run summaries keep experiment as run metadata and keep runtime_source focused on runtime provenance: schema_version, config_source, eval_files, and optional wrapper_eval_file.

This removes the redundant public fields called out in av-xz5i: root summary.json pass_at_k, duplicated experiment namespace/source metadata, runtime_source.kind, source_eval_files, and the public .internal/run-config.json / experiment_config path. Dashboard, serve, report, docs, and artifact-writer tests now consume that slimmer shape directly.

Comparable-framework check: Promptfoo and Margin keep machine duration fields in milliseconds (durationMs/latencyMs, runtime_ms/run_ms), while Vercel agent-eval converts agent milliseconds into seconds for result duration display. AgentV keeps machine-readable durations in ms and leaves human seconds to renderers.

Related: av-xz5i

Validation

  • bun run build
  • bun run typecheck
  • bun test apps/cli/test/commands/eval/artifact-writer.test.ts apps/cli/test/commands/eval/tag-filtering.test.ts
  • bun test apps/cli/test/commands/results/report.test.ts apps/cli/test/commands/results/serve.test.ts
  • bun test apps/dashboard/src/lib/run-detail-context.test.ts apps/dashboard/src/components/RunList.mobile.spec.tsx
  • bun test apps/cli/test/eval.integration.test.ts
  • live dogfood: bun apps/cli/src/cli.ts eval run examples/features/rubric/evals/operators.eval.yaml --target azure --grader-target azure --test-id finance-summary-operator-guards --workers 1 --experiment av-xz5i-dogfood --output .agentv/results/av-xz5i-contract-dogfood-azure-20260704 --no-cache passed 1/1 with a live Azure target and Azure LLM rubric grader

Evidence

Private evidence branch: EntityProcess/agentv-private@evidence/av-xz5i-result-artifact-contract-2026-07-04 (862965c). It includes the passed dogfood run bundle, source eval, and contract inspection notes showing the removed fields are absent from the generated public artifact bundle.


Compound Engineering
GPT--5_Codex

@christso
christso force-pushed the results-artifact-contract-tighten branch from 5d16c80 to 9e1ec27 Compare July 4, 2026 08:21
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 4, 2026

Copy link
Copy Markdown

Deploying agentv with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9e1ec27
Status: ✅  Deploy successful!
Preview URL: https://c9956720.agentv.pages.dev
Branch Preview URL: https://results-artifact-contract-ti.agentv.pages.dev

View logs

@christso
christso merged commit 9203502 into main Jul 4, 2026
8 checks passed
@christso
christso deleted the results-artifact-contract-tighten branch July 4, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant